package com.house.mapper;

import com.house.entity.UserInf;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserInfMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInf record);

    int insertSelective(UserInf record);

    UserInf selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserInf record);

    int updateByPrimaryKey(UserInf record);

    UserInf findByLoginId(@Param("loginId") int loginId);

    List<UserInf> findAll();
    int updateInf(@Param("sex")String sex,@Param("name")String name,@Param("id")int id);

    void updateProfillById(@Param("id")int id,@Param("profill")String profill);
}